public class Student extends Member{
	protected String major;
	protected float GPA;
	public Student()
	{
		set();
	}
	public Student(Student s)
	{
		super(s);
		GPA= s.GPA;
		major=new String(s.major);
	}
	public void set()
	{
		super.set();
		major = Names.department[rdm.nextInt(Names.department.length)];
	        GPA = (rdm.nextInt(400-100+1)+100)/100.0f;
	}
	public String toString(){
	return	super.toString()+String.format("%1.2f %-s",GPA,major);	
	}
	public String toTableRow( boolean partial ) {
		return  
		( 
				! partial ? "\n    <TR>\n" : "" ) + super.toTableRow( true ) + 
				String.format( "<TD>%1.2f </TD><TD> %s</TD>", GPA, major ) + 
				( !partial ? "\n    </TR>\n" : "");
		}	
}
